
import { useRoutes, Navigate } from 'react-router-dom';
import Layout from '../views/layout/Layout.jsx'
import Apply from '../views/apply/Apply.jsx'
import PreAndTab from '../views/preandtab/PreAndTab.jsx';
import Conference from '../views/conference/conference.jsx';
import AddConference from '../views/conference/addconference/AddConference.jsx';
import ConferenceServe from '../views/conference/conferenceserve/ConferenceServe.jsx';
export default function RouterView() {


    return (
        useRoutes([
            {
                path: '/',
                element: <Layout />
            },
            {
                path: '/conserve',
                element: <ConferenceServe />
            },
            {
                path: '/addpre',
                element: <AddConference />
            },
            {
                path: '/conference',
                element: <Conference />
            },
            {
                path: '/layout',
                element: <Navigate to={'/'} />
            },
            {
                path: '/apply',
                element: <Apply />
            },
            {
                path: '/preAndTabEdit',
                element: <PreAndTab />
            }

        ])
    )
}